﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Project8
{
    public partial class Dodaj : System.Web.UI.Page
    {
        private PosrednikServis servis;

        protected void Page_Load(object sender, EventArgs e)
        {
            servis = new PosrednikServis();
        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string[] neso = new String[4];

            neso[0] = TextBox1.Text;
            neso[1] = TextBox2.Text;
            neso[2] = TextBox3.Text;
            neso[3] = TextBox4.Text;

            servis.dodajKredit(neso[0], Int32.Parse(neso[1]), Int32.Parse(neso[2]), Int32.Parse(neso[3]));
        }
    }
}